﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace LevSTProgramTransform
{
    public partial class MessageForm : Form
    {
        public MessageForm()
        {
            InitializeComponent();
            this.Text = String.Empty; //設定標題為空
            //this.FormBorderStyle = FormBorderStyle.None; //取消邊框
            StartPosition = FormStartPosition.CenterScreen;
        }
        public void setMessage(string title, string message)
        {
            Message_label.Text = title;
            int width = Message_label.Width;
            this.Width = width + 25;
            Message_textBox.Text = "";
            this.Message_textBox.AppendText(message);
        }
    }
}
